<request>
	<post>
		<category-id><?php echo $category_id;?></category-id>
		<title><?php echo $title;?></title>
		<body><?php echo $body;?></body>
		<extended-body><?php echo $extended_body;?></extended-body>
		<?php if ($private === true):?>
		<private>1</private>
		<?php endif;?>
	</post>
  	<?php foreach($notifications as $notify):?>
	<notify><?php echo $notify['id'];?></notify>
	<?php endforeach;?>
  	<?php foreach($attachments as $file):?>
	<attachments>
		<?php if (isset($file['name'])):?>
		<name><?php echo $file['name'];?></name>
		<?php endif;?>
		<file>
			<file><?php echo $file['id'];?></file>
			<content-type><?php echo $file['type'];?></content-type>
			<original_filename><?php echo $file['basename'];?></original-filename>
		</file>
	</attachments>
	<?php endforeach;?>
</request>
